package com.ruoyi.system.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 天气预报对象 weather_forecast
 * 
 * @author ruoyi
 * @date 2025-03-16
 */
@TableName("weather_forecast")
public class WeatherForecast extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 省份 */
    @TableField("province")
    @Excel(name = "省份")
    private String province;

    /** 城市 */
    @TableField("city")
    @Excel(name = "城市")
    private String city;

    /** 日期 */
    @TableField("date")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 天气 */
    @TableField("weather_info")
    @Excel(name = "天气")
    private String weatherInfo;

    /** 最高温度 */
    @TableField("day_weather_temperature")
    @Excel(name = "最高温度")
    private Long dayWeatherTemperature;

    /** 最低温度 */
    @TableField("night_weather_temperature")
    @Excel(name = "最低温度")
    private Long nightWeatherTemperature;

    /** 风向 */
    @TableField("wind_direct")
    @Excel(name = "风向")
    private String windDirect;

    /** 风速 */
    @TableField("wind_power")
    @Excel(name = "风速")
    private String windPower;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }

    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }

    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }

    public void setWeatherInfo(String weatherInfo) 
    {
        this.weatherInfo = weatherInfo;
    }

    public String getWeatherInfo() 
    {
        return weatherInfo;
    }

    public void setDayWeatherTemperature(Long dayWeatherTemperature) 
    {
        this.dayWeatherTemperature = dayWeatherTemperature;
    }

    public Long getDayWeatherTemperature() 
    {
        return dayWeatherTemperature;
    }

    public void setNightWeatherTemperature(Long nightWeatherTemperature) 
    {
        this.nightWeatherTemperature = nightWeatherTemperature;
    }

    public Long getNightWeatherTemperature() 
    {
        return nightWeatherTemperature;
    }

    public void setWindDirect(String windDirect) 
    {
        this.windDirect = windDirect;
    }

    public String getWindDirect() 
    {
        return windDirect;
    }

    public void setWindPower(String windPower) 
    {
        this.windPower = windPower;
    }

    public String getWindPower() 
    {
        return windPower;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("province", getProvince())
            .append("city", getCity())
            .append("date", getDate())
            .append("weatherInfo", getWeatherInfo())
            .append("dayWeatherTemperature", getDayWeatherTemperature())
            .append("nightWeatherTemperature", getNightWeatherTemperature())
            .append("windDirect", getWindDirect())
            .append("windPower", getWindPower())
            .toString();
    }
}
